
using System;

public class RoomDef
{
	// cellapp向baseapp请求创建空房间
	// 然后，baseapp向cellapp回复
	public const Int32 SUBMSG_CREATE_EMPTY_ROOM = 1;
	// 创建房间
	public const Int32 SUBMSG_CREATE_ROOM = 2;
	// 匹配房间
	public const Int32 SUBMSG_MATCH_ROOM = 3;
	// 退出房间
	public const Int32 SUBMSG_EXIT_ROOM = 4;
	// 进入房间
	public const Int32 SUBMSG_ENTER_ROOM = 5;
	// 创建大厅空间成功
	public const Int32 SUBMSG_CREATE_HALL_SUCCESS = 6;
	// 游戏准备
	public const Int32 SUBMSG_PREPARE = 7;
	// 通知玩家开始叫地主
	public const Int32 SUBMSG_NOTIFY_JIAODIZHU = 8;
	// 玩家抢地主
	public const Int32 SUBMSG_QIANG_DIZHU = 9;
	// 通知底牌
	public const Int32 SUBMSG_NOTIFY_DIPAI = 10;
	// 出牌
	public const Int32 SUBMSG_PALYOUT_CARD = 11;
	// 广播出了哪些牌了
	public const Int32 SUBMSG_NOTIFY_PLAYOUT_CARDS = 12;
	// 广播玩家即将打牌
	public const Int32 SUBMSG_NOTIFY_PLAYER_PLAYOUT = 13;
	// 通知玩家抢地主结果
	public const Int32 SUBMSG_NOTIFY_QIANGDIZHU_RESULT = 14;
	// 通知玩家赢了
	public const Int32 SUBMSG_NOTIFY_PALYER_WIN = 15;
	// 设置头像图标
	public const Int32 SUBMSG_SETUP_HEAD_ICON = 16;
	// 取消准备
	public const Int32 SUBMSG_CANCEL_PREPARE = 17;
	// 叫地主
	public const Int32 SUBMSG_JIAODIZHU = 18;

	//一个房间最大玩家数量（也是开始游戏的玩家数量）
	public const Int32 OneRoomMaxPlayerNum = 3;

	public const Int32 AutoPlayoutTimeoutCount = 3;
}

public class PlayerType
{
	// 机器人
	public const Int32 Robot = 1;
	// 带客户端的玩家(实际用户)
	public const Int32 Client = 2;
}


